<?php 
    include_custom("/views/admin/header.php");
?>

<div id="main_container">

	<div class="header">
      <?php 
    include_custom("/views/admin/menu_header.php");
    ?>      
    </div>
    
    <div class="main_content">
    
            <?php 
    include_custom("/views/admin/menu.php");
?>        
                    
                    
                    
                    
    <div class="center_content">  

    
    <div class="right_content">            
        
    <h2>Thông tin chi tiết phòng trọ</h2> 
                    
                    
<table id="rounded-corner" summary="">
    <thead>
    	<tr>
            <th scope="col" class="rounded">Đặc tính</th>
            <th scope="col" class="rounded">Gía trị</th>
        </tr>
    </thead>
        <tfoot>
    	<tr>
        	<td class="rounded-foot-left"><em></em></td>
        	<td class="rounded-foot-right">&nbsp;</td>

        </tr>
    </tfoot>
    <tbody> 
    	<tr>
            <td>Mã số:</td>
            <td><?php echo $room->id; ?></td>
        </tr>
        	<tr>
            <td>Tiêu đề:</td>
            <td><?php echo $room->title; ?></td>
        </tr>
        	<tr>
            <td>Mô tả ngắn:</td>
            <td><?php echo $room->shortdescription; ?></td>
        </tr>
        	<tr>
            <td>Mô tả:</td>
            <td><?php echo $room->description; ?></td>
        </tr>
        	<tr>
            <td>Phòng trọ mới:</td>
            <td><?php echo $room->new; ?></td>
        </tr>
        	<tr>
            <td>Phòng trọ khép kín:</td>
            <td><?php echo $room->is_phong_khep_kin; ?></td>
        </tr>
        	<tr>
            <td>Số nhà:</td>
            <td><?php echo $room->sonha; ?></td>
        </tr>
        	<tr>
            <td>Kiệt:</td>
            <td><?php echo $room->kiet; ?></td>
        </tr>
        	<tr>
            <td>Đường:</td>
            <td><?php echo $duongDAO->get($room->idduong)->name; ?></td>
        </tr>
        	<tr>
            <td>Phường:</td>
            <td><?php echo $phuongDAO->get($room->idphuong)->name; ?></td>
        </tr>
        	<tr>
            <td>Tổng số phòng:</td>
            <td><?php echo $room->tongsophong; ?></td>
        </tr>
        	<tr>
            <td>Số phòng còn trống:</td>
            <td><?php echo $room->sophongcontrong; ?></td>
        </tr>
        	<tr>
            <td>Tên chủ nhà:</td>
            <td><?php echo $room->tenchunha; ?></td>
        </tr>
        <tr>
            <td>Điện thoại nhà:</td>
            <td><?php echo $room->dt_nha; ?></td>
        </tr>
        <tr>
            <td>Điện thoại di động:</td>
            <td><?php echo $room->dt_didong; ?></td>
        </tr>
        <tr>
            <td>Email:</td>
            <td><?php echo $room->email; ?></td>
        </tr>
        <tr>
            <td>Giới tính thuê:</td>
            <td><?php echo $room->gioi_tinh_thue; ?></td>
        </tr>
        <tr>
            <td>Gía phòng tối đa:</td>
            <td><?php echo $room->gia_phong_max; ?></td>
        </tr>
        <tr>
            <td>Gía phòng tối thiểu:</td>
            <td><?php echo $room->gia_phong_min; ?></td>
        </tr>
        <tr>
            <td>Gía điện:</td>
            <td><?php echo $room->giadien; ?></td>
        </tr>
        <tr>
            <td>Gía nước:</td>
            <td><?php echo $room->gia_nuoc; ?></td>
        </tr>
        <tr>
            <td>Gần chợ:</td>
            <td><?php echo $room->gan_cho; ?></td>
        </tr>
        <tr>
            <td>Gần đường:</td>
            <td><?php echo $room->gan_duong; ?></td>
        </tr>
        <tr>
            <td>Tiêu đề googlemap:</td>
            <td><?php echo $room->titleGoogleMap; ?></td>
        </tr>
        <tr>
            <td>Tọa độ logitude:</td>
            <td><?php echo $room->longitude; ?></td>
        </tr>
        <tr>
            <td>Tọa độ latitude:</td>
            <td><?php echo $room->latitude; ?></td>
        </tr>
        <tr>
            <td>Stick:</td>
            <td><?php echo $room->stick; ?></td>
        </tr>
        <tr>
            <td>Thứ tự:</td>
            <td><?php echo $room->order; ?></td>
        </tr>
        <tr>
            <td>Lượt xem:</td>
            <td><?php echo $room->view; ?></td>
        </tr>
        	<tr>
            <td>Tình trạng:</td>
            <td><?php if($room->status != 0) echo "Hoạt động"; else echo "Không hoạt động"; ?></td>
        </tr>
        
    </tbody>
</table>

	 <a href="index.php?rt=admin/delete_room&id=<?php echo $room->id; ?>" class="bt_green"><span class="bt_green_lft"></span><strong>Xóa tài khoản</strong><span class="bt_green_r"></span></a>
     <a href="index.php?rt=admin/edit_room&id=<?php echo $room->id; ?>" class="bt_red"><span class="bt_red_lft"></span><strong>Chỉnh sửa thông tin tài khoản</strong><span class="bt_red_r"></span></a> 

     </div><!-- end of right content-->
                                
  </div>   <!--end of center content -->               
                    
<?php 
    include_custom("/views/admin/footer.php");
?>s